package com.ruoyi.system.domain;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * WxPayProperties
 *
 * @author : kent
 **/
@Data
@Configuration
public class WxPayProperties {

    /**
     * 微信公众号或者小程序等的appid
     */
    private String appId = "wx436121832ee5741d";

    /**
     * 支付通知地址
     */
    private String payNotifyUrl = "https://yundongshugen.com/api/system/common/wx-pay/pay-notify-callback";

    /**
     * 退款回调地址
     */
    private String refundNotifyUrl = "https://yundongshugen.com/api/system/common/wx-pay/refund-notify-callback";

    /**
     * 微信支付商户号
     */
    private String mchId = "1719208477";
    /**
     * 微信支付商户密钥
     */
    private String mchKey = "5f2a6c4e8b7d3g9h1j0k2l4m6n8p9q0r1t3u5v7w9x2z4y6";
    /**
     * apiV3Key
     */
    private String apiV3Key = "bXlTZWNyZXRLZXkzMkJ5dGVzRm92VjMM";
    /**
     * apiV3 证书序列号值
     */
    private String certSerialNo = "3A85C809B369E6CDA2758F646344D747B7EBC8F7";
    /**
     * 公钥ID
     */
    private String publicKeyId = "PUB_KEY_ID_0117192084772025062200291533000200";


    /**
     * pub_key.pem证书文件的绝对路径或者以classpath:开头的类路径.
     */
    private String publicKeyPath = "classpath:wxcert/pub_key.pem";

    /**
     * p12证书路径
     */
    private String keyPath = "classpath:wxcert/apiclient_cert.p12";

    /**
     * 证书路径
     */
    private String privateCertPath = "classpath:wxcert/apiclient_cert.pem";

    /**
     * 证书密钥路径
     */

    private String privateKeyPath = "classpath:wxcert/apiclient_key.pem";
}